package com.fourcitizens.playas

class Beach {

	static searchable = true

	// TODO: delete
	String photo
	
	// Location info
	static belongsTo = [town : Town]
	//Point coordinates
	static embedded = ['coordinates']
	// TODO: delete
	double latitude
	double longitude
	
	// Basic info
	String name
	String description
	
	int length
	int mediumWidth
	boolean promenade = false
	boolean anchorageArea = false
	boolean nudist = false
	
	// Beach features
	String occupation
	String urbanization
	String composition
	String sandType
	String bathingConditions
	
	//Environmental info
	boolean vegetation = false
	boolean blueFlag = false
	boolean protectedArea = false 
	
	//Accesibility info
	boolean accessSignaling = false
	boolean disabledAccess = false
	
	// Services info
	boolean toilets = false
	boolean showers = false 
	boolean phone = false
	boolean paperBin = false
	boolean cleaningService = false
	boolean gateways = false
	boolean umbrellasRental = false
	boolean sunbedRental = false
	boolean yatchRental = false
	boolean spaKiosks = false
	boolean yatchClub = false
	boolean divingArea = false
	
	// Automatically filled by GORM
	Date dateCreated
	Date lastUpdated
	
	static constraints = {
		length(min:0)
		mediumWidth(min:0)
	}
	
	class Point {
		long latitude
		long longitude
	}

}
